import myUtil from '../utils/my-utils.js'
import fetch from '../utils/fetch'

const myPlugin = {
  install(Vue) {
    console.log('开始装载自定义插件功能.')
    Vue.prototype.$dayjs = myUtil.$dayjs
    Vue.prototype.$http = fetch
    Vue.prototype.$debounce = myUtil.debounce
    Vue.prototype.$throttle = myUtil.throttle
  }
}

module.exports = myPlugin
